#!/bin/sh

# Extracts the ID matrix from the given file (which is supposed to have
# floats with 6 precision digis)

grep 1.000000 "$1" | \
egrep -v '[23456789]' | \
sed s/'-0.000000'/0.000000/g | \
sed s/'1.000000'/1/g | \
sed s/'0.000000'/0/g | \
sort -r | \
uniq
